<?php

use Illuminate\Support\Facades\DB;
use App\Tools\Common;

$router = app('router');

$router->get('captcha', function () {
    return 'captcha';
});

$router->get('captcha/test', 'Packages\Captcha\Http\Controllers\Admin\CaptchaController@captcha');

// 验证码管理 admin
$router->group(['namespace' => 'Packages\Captcha\Http\Controllers\Admin', 'prefix' => 'api/common'], function () use ($router) {
    $router->get('/captcha/{number}', 'CaptchaController@captcha');
    // $router->post('/sms/code', 'CaptchaController@smsCode');
});

// 验证码管理 client
$router->group(['namespace' => 'Packages\Captcha\Http\Controllers\Client', 'prefix' => 'web/common'], function () use ($router) {
    $router->get('/captcha/{number}', 'CaptchaController@captcha');
    // $router->post('/sms/code', 'CaptchaController@smsCode');
});
